package models;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.OneToOne;

import play.db.jpa.Model;


@Entity
public class Usuario extends Model {

	@Column(unique=true)
	public String login;
	public String senha;
	public boolean ativo;

	@Column(nullable=false)
	public TipoDeUsuario papel;
	
	@OneToOne(cascade=CascadeType.ALL, optional=false)
	public Pessoa pessoa;	
}
